home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
cqa.zip
/
LPT2PRN.TC
< prev
next >
Wrap
Text File
|
1991-04-01
|
398b
|
17 lines
QUESTION: How can I send output to the second parallel port?
ANSWER: Open up a stream using a filename of "LPT2". Here's an
example:
/*------------------------- lpt2prn.c -----------------------*/
#include <stdio.h>
main()
{
FILE *lst2;
lst2 = fopen("LPT2", "w");
fprintf(lst2, "This will go through LPT2.\n");
fclose(lst2);
}